]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
autorunManager: Stop erring on the side of caution for network mounts
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 16 Oct 2012 17:50:13 +0000 (13:50 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 17 Oct 2012 16:24:45 +0000 (12:24 -0400)
Every mount that we care about that's local should have a GVolume
associated with it.

https://bugzilla.gnome.org/show_bug.cgi?id=686241

js/ui/components/autorunManager.js

index bf94759709f2d8f56c97311043edfeb5f6d337c9..7709a3d7936d9844d8d07ad4199bf9d04921396d 100644 (file)
@@ -45,14 +45,12 @@ function isMountRootHidden(root) {
 }
 
 function isMountNonLocal(mount) {
-    // If the mount doesn't have an associated volume, that means it could
-    // be a remote filesystem. For certain kinds of local filesystems,
-    // like digital cameras and music players, there's no associated
-    // gvfs volume, so err on the side of caution and assume it's a local
-    // filesystem to allow the prompt.
+    // If the mount doesn't have an associated volume, that means it's
+    // an uninteresting filesystem. Most devices that we care about will
+    // have a mount, like media players and USB sticks.
     let volume = mount.get_volume();
     if (volume == null)
-        return false;
+        return true;
 
     return (volume.get_identifier("class") == "network");
 }